made google 'real' again since output=js isn't likely to go away anytime soon.
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 17 Mar 2005 16:31:29 +0000 (16:31 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 17 Mar 2005 16:31:29 +0000 (16:31 +0000)
gpsbabel/README
gpsbabel/google.c

index 5c3f32a8929939354fefb7472d139c615b05352d..d7b0d8538d5280654dfdf98f7c890aa79630527a 100644 (file)
@@ -755,6 +755,23 @@ THE FORMATS
        There are many features in this file format that we don't yet
        support, but simple waypoint lists convert fine.
 
+    GOOGLE
+        
+        This format is designed to read the XML emitted when you tack
+        "&output=js" onto the end of a Google Maps route URL (use the 
+        "link to this page" option to get a usable URL.)  This allows 
+        you to plan a route using Google Maps, then download it and use 
+        it in your own mapping program or GPS receiver.  If you use a 
+        Unix-compatible operating system, this shell script might be 
+        useful:
+
+        #!/bin/sh
+        FROM="233 S. Wacker, Chicago, IL"
+        TO="1060 W. Addison, Chicago, IL"
+        wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=js" \
+           2>/dev/null >google_map.js
+
+        gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx
 
 DATA FILTERS
 
index ffdc918ea1ed79fb232d5157237c578918ee5525..200f3d215f8d90c879de28602d5dd1d83a62b86a 100644 (file)
@@ -200,7 +200,7 @@ google_rd_deinit(void)
 }
 
 ff_vecs_t google_vecs = {
-       ff_type_internal,
+       ff_type_file,
         { ff_cap_none, ff_cap_read, ff_cap_none},
        google_rd_init, 
        NULL,